home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1464 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  960 b 

  1. Path: nntp.pinc.com!usenet
  2. From: MCOLYNUCK@PIM.BC.CA (Michael Colynuck)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Executing DOS command from C
  5. Date: Sun, 14 Jan 1996 07:11:27 GMT
  6. Organization: Pacific InterConnect
  7. Message-ID: <4dah1i$g7q@nntp.pinc.com>
  8. References: <4d28di$b7g@globe.indirect.com>
  9. NNTP-Posting-Host: pinc102.pinc.com
  10. X-Newsreader: Forte Free Agent v0.55
  11.  
  12. wayneft@indirect.com wrote:
  13.  
  14. >I know that this is probably a stupid question, but it's been a while
  15. >since I have programmed in C.  My question is what is the command in a
  16. >C program that executes a DOS command such as DIR, or COPY.  I've
  17. >looked through all my books and for some reason I just can't seem to
  18. >find it.  I know it is a real simple command that is in the dos.h
  19. >header file.  If someone could email me or post the command I would be
  20. >very grateful, I need it because I have to something for work.
  21.  
  22. >wayneft@indirect.com
  23.  
  24.  
  25. My compiler uses the function: system ("dir");
  26.  
  27. Michael
  28.  
  29.